import { defineStore } from 'pinia'

// 管理路由组件
export const useViewRoutesStore = defineStore('viewRoutes', {
  state: (): ViewRoutesState => {
    return {
        cacheRouteNames: []
    }
  },
  actions: {
    async setCacheRouteNames(data: string[]) {
        this.cacheRouteNames = data
    }
  }
})